﻿using System.Collections.Generic;

namespace JH
{
    /// <summary>
    ///  排序处理器接口
    /// </summary>
    public interface ISort<TPoint> : IProcessor<TPoint>
        where TPoint : struct
    {
        /// <summary>
        ///  排序器
        /// </summary>
        public IComparer<TPoint> Comparer { get; }

        /// <summary>
        ///  按照Y值排序后的数据列表
        /// </summary>
        public IReadOnlyList<TPoint> SortedData { get; }

        /// <summary>
        ///  获取数据的最小值
        /// </summary>
        public TPoint Min { get; }

        /// <summary>
        ///  获取数据的最大值
        /// </summary>
        public TPoint Max { get; }
    }
}